package HardwareConfiguration;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

public class HardwareConfiguration_1 extends Composite {
	private Text text;
	private Text text_1;
	private Text text_2;
	private Text text_3;
	private Text text_4;
	private Text text_5;
    /**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public HardwareConfiguration_1(Composite parent, int style) {
		super(parent, style);
		
		setSize(1000, 800);
		setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		

		
		Label lblNewLabel = new Label(this, SWT.NONE);
		lblNewLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblNewLabel.setBounds(93, 10, 227, 23);
		lblNewLabel.setText("硬件配置(设备分配)");
		lblNewLabel.setAlignment(SWT.CENTER);
		lblNewLabel.setFont(new Font(getDisplay(), "宋体",18,SWT.RIGHT));
		
		Label label = new Label(this, SWT.NONE);
		label.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label.setText("请选择设备分配的参数");
		label.setBounds(129, 39, 132, 23);
		
		Label label_1 = new Label(this, SWT.NONE);
		label_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_1.setText("设备数：");
		label_1.setBounds(187, 68, 48, 23);
		
		Label label_2 = new Label(this, SWT.NONE);
		label_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_2.setText("CPM数：");
		label_2.setBounds(184, 108, 51, 23);
		
		Label label_3 = new Label(this, SWT.NONE);
		label_3.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_3.setText("变量数：");
		label_3.setBounds(187, 147, 48, 23);
		
		Label label_4 = new Label(this, SWT.NONE);
		label_4.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_4.setText("安装位置数：");
		label_4.setBounds(386, 68, 74, 23);
		
		Label label_5 = new Label(this, SWT.NONE);
		label_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_5.setText("RDC数：");
		label_5.setBounds(410, 108, 48, 23);
		
		Label label_6 = new Label(this, SWT.NONE);
		label_6.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_6.setText("目标数：");
		label_6.setBounds(410, 147, 48, 23);
		
		text = new Text(this, SWT.BORDER);
		text.setBounds(241, 65, 102, 23);
		
		text_1 = new Text(this, SWT.BORDER);
		text_1.setBounds(241, 105, 102, 23);
		
		text_2 = new Text(this, SWT.BORDER);
		text_2.setBounds(241, 144, 102, 23);
		
		text_3 = new Text(this, SWT.BORDER);
		text_3.setBounds(464, 65, 102, 23);
		
		text_4 = new Text(this, SWT.BORDER);
		text_4.setBounds(464, 105, 102, 23);
		
		text_5 = new Text(this, SWT.BORDER);
		text_5.setBounds(464, 144, 102, 23);
		
		Button btnNewButton = new Button(this, SWT.NONE);
		btnNewButton.setBounds(284, 215, 80, 27);
		btnNewButton.setText("清空");
		
		Button btnNewButton_1 = new Button(this, SWT.NONE);
		btnNewButton_1.setBounds(418, 215, 80, 27);
		btnNewButton_1.setText("保存");
		
		Label label_7 = new Label(this, SWT.NONE);
		label_7.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_7.setText("请在下图中标记出DIMA设备安装位置：");
		label_7.setBounds(129, 271, 230, 23);
		
		Composite composite = new Composite(this, SWT.NONE);
		composite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		composite.setBounds(129, 300, 491, 233);
		composite.setBackgroundImage(SWTResourceManager.getImage("./images/u250.png"));
		
		Button button = new Button(this, SWT.NONE);
		button.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
			}
		});
		button.setText("返回");
		button.setBounds(284, 551, 80, 27);
		
		Button button_1 = new Button(this, SWT.NONE);
		button_1.setText("下一步");
		button_1.setBounds(418, 551, 80, 27);

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

}
